---
layout: "default"
title: "CodeUnit"
description: "Swift documentation for extension 'CodeUnit'."
keywords: "CodeUnit,extension,swift,documentation"
root: "/v2.2"
---

<div class="intro-declaration"><code class="language-swift">extension CodeUnit</code></div>


<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherits">_StringElementType</code>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>









